import { useNavigate } from "react-router-dom"
const Login=()=>{
    const navigate = useNavigate()
    const poweritem=[
        {link:'/home/Overview'},
        {link:'/home/CurrentModulation/Corroboration'},
        {link:'/home/CurrentModulation/TightJoint'},
        {link:'/home/Command'},
        {link:'/home/Abnormal'},
        {link:'/home/HomeTest/Abnormal'},
        {link:'/home/HomeTest/NeedTo'},
        {link:'/home/HomeTest/NewAdd'},
        {link:'/home/HomeTest/Testing'},
        {link:'/home/Noitce'},
        {link:'/home/Statistics/Information'},
        {link:'/home/Statistics/TightJointPeo'},
        {link:'/home/Statistics/AbnormalErr'},
        {link:'/home/SetUp/Organization'},
        {link:'/home/SetUp/Account'},
        {link:'/home/SetUp/Role'},
        {link:'/home/SetUp/Journal'},
        {link:'/home/SetUp/Data'},
        {link:'/home/SetUp/System'},
    ]
    const to=()=>{
        sessionStorage.setItem('power',JSON.stringify(poweritem))
        navigate('/home')
    }
    return<div>
        login
        <button onClick={to}>登录</button>
    </div>
}
export default Login